{if !$P->islast}
<li class="pagination_last"><a href="{$P->lastlink}">{i18n('pagination.default.last')}</a></li>
{/if}